package cn.com.code.generator.utils;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * jdbc类型转化
 * @author chendong
 * @Date 2018/12/27 17:57
 */
@Data
@Component
@PropertySource("generator.properties")
@ConfigurationProperties(prefix = "jdbc")
public class JdbcUtil {

    private Map<String, String> map = new HashMap<String, String>();

    public String getJdbcType(String key) {
        return map.get(key);
    }
}
